Fixing No Provider For Rootscope And Location Error In Angular Upgrades